package com.qnbc.mystery.pojo.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.qnbc.mystery.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 接单列对象 waimai_order
 *
 * @author guzj
 * @date 2024-01-15
 */
@Setter
@Getter
@ApiModel("骑手接单列表")
public class WaimaiOrder {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * $column.columnComment
     */
    @ApiModelProperty("订单 id")
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long orderId;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date createdTime;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String createdBy;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date updatedTime;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String updatedBy;
    /**
     * 5 待配送  6 已取餐  7 配送中  8 已送达 9 确认收货
     */
    private String orderStatus;

    /**
     * 收货地址
     */
    @Excel(name = "收货地址")
    @TableField(exist = false)
    private String address;

    /**
     * 收货人
     */
    @Excel(name = "收货人")
    @TableField(exist = false)
    private String consignee;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    @TableField(exist = false)
    private String telnumber;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderId", getOrderId())
                .append("createdTime", getCreatedTime())
                .append("createdBy", getCreatedBy())
                .append("updatedTime", getUpdatedTime())
                .append("updatedBy", getUpdatedBy())
                .toString();
    }
}
